SQLiteCipher
class SQLiteCipher(url: String, password: String, options: ERROR CLASS: Symbol not found for ConnectionPool.Options = ConnectionPool.Options(), val encoders: ERROR CLASS: Symbol not found for ValueEncoderRegistry = ValueEncoderRegistry()) : ISQLiteCipher(source)
Encrypted SQLite (SQLCipher) driver for the JVM and Android, backed by the Rust sqlx core via JNI. The same Rust engine powers the Kotlin/Native targets through FFI, so behavior is uniform.
Each operation runs the blocking JNI call on Dispatchers.IO. The url must already be a resolved sqlite: URL — the sqliteCipher(...) factory normalizes it per platform (Android resolves relative filenames against the app's private database directory).
Parameters
url
The (resolved) SQLite connection URL.
password
The SQLCipher passphrase, applied as PRAGMA key. Pass an empty string for an unencrypted database.
options
Connection pool configuration.
encoders
Optional registry of value encoders used when binding query parameters.
Types
Link copied to clipboard
class SqlxConnection(rt: Long, cn: Long, val encoders: ERROR CLASS: Symbol not found for ValueEncoderRegistry) : <ERROR CLASS> ERROR CLASS: Symbol not found for Connection
Link copied to clipboard
class SqlxTransaction(rt: Long, tx: Long, val encoders: ERROR CLASS: Symbol not found for ValueEncoderRegistry) : <ERROR CLASS> ERROR CLASS: Symbol not found for Transaction
Properties
Functions
Link copied to clipboard
open suspend override fun executeWithResult(statement: ERROR CLASS: Symbol not found for Statement): ERROR CLASS: Symbol not found for Result<ERROR CLASS: Symbol not found for ExecuteResult>
open suspend override fun executeWithResult(sql: String): ERROR CLASS: Symbol not found for Result<ERROR CLASS: Symbol not found for ExecuteResult>
Link copied to clipboard
open suspend override fun fetchAll(statement: ERROR CLASS: Symbol not found for Statement): ERROR CLASS: Symbol not found for Result<ERROR CLASS: Symbol not found for ResultSet>
Link copied to clipboard
open suspend override fun migrate(supplier: () -> List<ERROR CLASS: Symbol not found for MigrationFile>, table: String, schema: String?, createSchema: Boolean, afterStatementExecution: suspend (ERROR CLASS: Symbol not found for Statement, ERROR CLASS: Symbol not found for Duration) -> Unit, afterFileMigration: suspend (ERROR CLASS: Symbol not found for Migration, ERROR CLASS: Symbol not found for Duration) -> Unit): ERROR CLASS: Symbol not found for Result<ERROR CLASS: Symbol not found for Migrator.Results>
open suspend override fun migrate(path: String, table: String, schema: String?, createSchema: Boolean, afterStatementExecution: suspend (ERROR CLASS: Symbol not found for Statement, ERROR CLASS: Symbol not found for Duration) -> Unit, afterFileMigration: suspend (ERROR CLASS: Symbol not found for Migration, ERROR CLASS: Symbol not found for Duration) -> Unit): ERROR CLASS: Symbol not found for Result<ERROR CLASS: Symbol not found for Migrator.Results>
open suspend override fun migrate(files: List<ERROR CLASS: Symbol not found for MigrationFile>, table: String, schema: String?, createSchema: Boolean, afterStatementExecution: suspend (ERROR CLASS: Symbol not found for Statement, ERROR CLASS: Symbol not found for Duration) -> Unit, afterFileMigration: suspend (ERROR CLASS: Symbol not found for Migration, ERROR CLASS: Symbol not found for Duration) -> Unit): ERROR CLASS: Symbol not found for Result<ERROR CLASS: Symbol not found for Migrator.Results>
Link copied to clipboard